package com.ray.depot.service;

import java.util.List;

import com.ray.depot.table.dto.StockDetailDto;
import com.ray.depot.table.entity.StockDetail;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

public interface StockDetailService {

	/**
	 * 新增
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addStockDetail(StockDetail params, LoginUser user);
	
    /**
     * 查询
     * @param id
     * @param user
     * @return
     */
	StockDetail queryStockDetail(String id, LoginUser user);
	
    /**
     * 修改
     * @param params
     * @param user
     * @return
     */
	Result<Object> updateStockDetail(StockDetail params, LoginUser user);
	
    /**
     * 删除
     * @param id
     * @param user
     * @return
     */
	Result<Object> deleteStockDetail(String id, LoginUser user);
	
   /**
    * 查询
    * @param params
    * @param page
    * @param user
    * @return
    */
	PageDto<StockDetail> queryStockDetail(StockDetail params, PageDto<StockDetail> page, LoginUser user);
    /**
     * 查询
     * @param params
     * @param page
     * @param user
     * @return
     */
	PageDto<StockDetailDto> querySelectStockDetail(StockDetailDto params, PageDto<StockDetailDto> page, LoginUser user);
    /**
     * 查询出库的详情记录
     * @param materialId
     * @param warchouseId
     * @param object
     * @param user
     * @return
     */
	List<StockDetail> queryStockDetail(String materialId, String warchouseId, List<String> outids,LoginUser user);
    /**
     * 数量出库
     * @param outQuantity
     * @param stockDetail
     * @param user
     * @return
     */
	int stockDetailOut(int outQuantity, StockDetail stockDetail, LoginUser user);
}
